<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>MyPetstore</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body>
<div th:replace="common/top"></div>
<div id="Catalog">

      <form action="/account/newAccount" method="post" th:object="${newAccount}">
          <h3>User Information</h3>
          <table id="accountform">
              <tr>
              <td>User ID:</td>
                  <td>
                      <input type="text" name="username" th:field="*{username}" />
                  </td>
              </tr>
              <tr>
                  <td>password:</td>
                  <td>
                      <input type="password" name="password" th:field="*{password}"/>
                  </td>
              </tr>
              <tr>
                  <td>Repeat password:</td>
                  <td>
                      <input type="password" name="repeatedPassword"/>
                  </td>
              </tr>

              <p style="color: red" th:text="${session.msg}">错误信息</p>

          </table>
          <div th:replace="account/includeAccountFields::fields"></div>
          <div>
              <input type="submit" value="Sign Up" />
          </div>
          <div>
              <br>
          </div>
          <div>
              <br>
          </div>
          <div>
              <br>
          </div>
      </form>

</div>
<div th:replace="common/bottom"></div>
</body>
</html>